package swap;

import org.junit.Test;

public class Swap1 {
	@Test
	public void fun() {
		int x = 1;
		int y = 2;
		swap(x, y);
		System.out.println("x: " + x + ";y: " + y);
	}
	public void swap(int x, int y) {
		int temp = x;
		x = y;
		y = x;
	}
}
